<div class="content-inner">
            <div class="marg20-btm">
             <a href="<?php echo site_url('backend_pages/addproducts'); ?>" class="btn btn-primary">&#43; Add Products </a>
             <br /> <br />
         <?php
		 
		 $action3 = $this->uri->segment(3);
         $action4 = $this->uri->segment(4);
        if ($action3 == 'success' && $action4 =='del') {
            ?>
           <span id="error" style="background: none repeat scroll 0 0 #42C8D1;
                  color: white;
                  float: left;
                  line-height: 23px;
                  padding: 3px;
                  width: 500px;
                  border-radius: 3px;
                  ">Delete successfull !!</span>
            <?php  }
			else if($action3 == 'success' && $action4 =='edit'){
				?>
				 <span id="error" style="background: none repeat scroll 0 0 #42C8D1;
                  color: white;
                  float: left;
                  line-height: 23px;
                  padding: 3px;
                  width: 500px;
                  border-radius: 3px;
                  ">Edit successfull !!</span>
			<?php	}
			else if($action3 == 'success' && $action4 =='add'){
				?>
				 <span id="error" style="background: none repeat scroll 0 0 #42C8D1;
                  color: white;
                  float: left;
                  line-height: 23px;
                  padding: 3px;
                  width: 500px;
                  border-radius: 3px;
                  "> Add successfull !!</span>
			
		     <?php		}
			 ?>
			<script>
            	$('#error').show().delay(5000).fadeOut();	
            </script>
                             <form class="pull-right form-inline" />
                                 <input type="text" placeholder="Find Item" />
                                 <input type="submit" name="submit" value="Search" class="btn" />
                             </form> 
                         </div>
                         <table class="table table-bordered table-striped">
                           <thead>
                               <tr>
                                 <th><input type="checkbox" id="select_all" class="child" title="header=[Select All] body=[] fade=[on]" /></th>
                                 <th>ID</th>
                                 <th>Product_Name </th>
                                 <th>Product_Price </th>
                                 <th>Product_Type </th>
                                 <th>Category </th>
                                 <th>Product_images</th>
                                 <th>Description </th>
                                 <th>Post By </th>
                                 <th>Status</th>
                                 <th>Action </th>
                               </tr>
                             </thead>
                             
                             <tbody>
                            <?php 
							if($backend_prolist->num_rows() >0){
							 foreach($backend_prolist->result() as $row){
								 $image_properties = array(
								  'src' => 'assets/uploads/thumbs/thumb_'.$row->pro_img,
								  'alt' => $row->pro_name,
								  'class' => 'post_images',
								  'width' => '35',
								  'height' => '30',
								  'title' => $row->pro_description,
								  'rel' => 'lightbox',
									);
								
                             echo '
							 
                               <tr>
                                 <td><input type="checkbox" name="check_menu[]" id="check'.$row->pro_id.'" class="child" value="'.$row->pro_id.'"/></td>
                                 <td>'.$row->pro_id.' </td>
                                 <td>'.$row->pro_name.' </td>
                                 <td>'.$row->pro_price.' </td>
								 <td>'.$row->pro_type.'</td>
								 <td>'.$row->cate_name.'</td>
								 <td><div class="gallery">
								 <a href="../assets/uploads/original/'.$row->pro_img.'">'.img($image_properties).' </a></div></td>
                                 <td>'.substr($row->pro_description,0,40).' ... </td>
                                 <td>'.$row->user_fullName.' </td>
								 <td>';
								 if($row->pro_statu_id == 1){
									 echo '<a href="'.site_url("backend_pages/setStatu").'/'.$row->pro_statu_id.'/'.$row->pro_id.'"><img src="'.site_url().'backend/img/statu.gif" title="Click to Unpublish !" />';
								 }else{
									 echo '<a href="'.site_url("backend_pages/setStatu").'/'.$row->pro_statu_id.'/'.$row->pro_id.'"><img src="'.site_url().'backend/img/statu_1.gif" title="Click to Publish !" />';
									}
								echo '</td>
								 <td>' ;
								 
							 	echo '
								<a href="'.site_url('backend_pages/sel_upateproduct').'/'.$row->pro_id.'" rel="tooltip" title="Edit" class="btn btn-primary" onClick="return confirm(\'Are you sure to update ?\')"><i class="icon-edit"></i></a>';
								echo '
								<a href='.site_url('backend_pages/delete').'/'.$row->pro_img.' rel="tooltip" title="Delete" class="btn btn-danger" onClick="return confirm(\'Are you sure to delete ?\')"><i class="icon-trash"></i></a></td>
								
								</tr>';
								}
								}
								?>
                              
                              
                             </tbody>
                           </table>
                           <div class="form-inline">
                               <select>
                                 <option />Bulk Actions 
                                 <option />Delete 
                               </select>
                               <input type="submit" value="Submit" class="btn btn-primary" onClick="return confirm('Are you sure ?');" />
                           </div>
                           <div class="pagination">
                             <ul>
                               <ul>
                               <li><?php echo $pages; ?></li>
                             	</ul>
                             </ul>
                           </div>